package com.atguigu.guli.service.edu.feign;

import com.atguigu.guli.service.base.result.R;
import com.atguigu.guli.service.edu.feign.fallback.OssFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-oss",fallback = OssFeignClientFallback.class) //http://localhost:8120
public interface OssFeignClient {

    @DeleteMapping("/admin/oss/file/delete")
    // 由于开发工具编译时会将参数编译为 arg0 param0
    public R deleteFile(@RequestParam("path") String path ,
                        @RequestParam("module") String module);

}
